package com.weimob.mcloud.wechatwork.customer.service.model;

import lombok.Data;

/**
 * @author chenliuzhu
 * @date 2022/12/19
 */

@Data
public class GenderStatisticModel {

    int maleNum;
    int femaleNum;
    int unknownNum;

    public GenderStatisticModel(int maleNum, int femaleNum, int unknownNum) {
        this.maleNum = maleNum;
        this.femaleNum = femaleNum;
        this.unknownNum = unknownNum;
    }

    public void increaseMaleNum(int num){
        this.maleNum = this.maleNum + num;
    }

    public void increaseFemaleNum(int num){
        this.femaleNum = this.femaleNum + num;
    }

    public void increaseUnknownNum(int num){
        this.unknownNum = this.unknownNum + num;
    }

    public int getSum() {
        return maleNum + femaleNum + unknownNum;
    }
}
